<?php
/** @var TPersonaController $this */
/** @var TPersona $data */
?>
<div class="view">
                    
        <?php if (!empty($data->per_cedula)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_cedula')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->per_cedula); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->per_nombre)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_nombre')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->per_nombre); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->per_apellido)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_apellido')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->per_apellido); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->per_fechanacimiento)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_fechanacimiento')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo Yii::app()->getDateFormatter()->formatDateTime($data->per_fechanacimiento, 'medium', 'medium'); ?>
            <br/>
                 <?php echo date('D, d M y H:i:s', strtotime($data->per_fechanacimiento)); ?>
                            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->per_lugar_nacimiento)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_lugar_nacimiento')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->per_lugar_nacimiento); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->per_direccionresi)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_direccionresi')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->per_direccionresi); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->per_numcasa)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_numcasa')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->per_numcasa); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->per_referencia)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_referencia')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->per_referencia); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->per_telf)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_telf')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->per_telf); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->per_cel)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_cel')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->per_cel); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->per_mail)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_mail')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->per_mail); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->per_genero)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_genero')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->per_genero); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->per_foto)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_foto')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->per_foto); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->per_tiposangre)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_tiposangre')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->per_tiposangre); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->per_estadocivil)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('per_estadocivil')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->per_estadocivil); ?>
            </div>
        </div>

        <?php endif; ?>
    </div>